package net.bolue.sysmng.tblbean;

import java.util.Iterator;
import java.util.Map;
import java.util.Set;

/**
 * 更新TAB页
 * @author Administrator
 *
 */
public class UpdTabPage extends TableBean{

	/**
	 * 子系统
	 */
	private String subSys;
	
	/**
	 * 更新标识
	 */
	private String updateId;
	
	/**
	 * 标签页序号
	 */
	private Integer pageNo;
	
	/**
	 * 标签页标题
	 */
	private String pageTitle;
	
	/**
	 * 排列格式
	 */
	private String arrayFmt;
	
	/**
	 * 数据表格
	 */
	private String pageDt;
	
	/**
	 * 备注
	 */
	private String remark;
	
	public String getSubSys() {
		return subSys;
	}

	public void setSubSys(String subSys) {
		this.subSys = subSys;
	}

	public String getUpdateId() {
		return updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	public Integer getPageNo() {
		return pageNo;
	}

	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}

	public String getPageTitle() {
		return pageTitle;
	}

	public void setPageTitle(String pageTitle) {
		this.pageTitle = pageTitle;
	}

	public String getArrayFmt() {
		return arrayFmt;
	}

	public void setArrayFmt(String arrayFmt) {
		this.arrayFmt = arrayFmt;
	}

	public String getPageDt() {
		return pageDt;
	}

	public void setPageDt(String pageDt) {
		this.pageDt = pageDt;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public TableBean mapToEntry(Map<String, Object> map) {
		UpdTabPage updTabPage = new UpdTabPage();
		Set<String> keySet = map.keySet();
		Iterator<String> keyIt = keySet.iterator();
		while(keyIt.hasNext()){
			String key = keyIt.next();
			Object o = map.get(key);
			if("SUBSYS".equals(key)){
				updTabPage.setSubSys((String)o);
			} else if("UPDATEID".equals(key)){
				updTabPage.setUpdateId((String)o);
			} else if("PAGENO".equals(key)){
				updTabPage.setPageNo((Integer)o);
			} else if("PAGETITLE".equals(key)){
				updTabPage.setPageTitle((String)o);
			} else if("ARRAYFMT".equals(key)){
				updTabPage.setArrayFmt((String)o);
			} else if("PAGEDT".equals(key)){
				updTabPage.setPageDt((String)o);
			} else if("REMARK".equals(key)){
				updTabPage.setRemark((String)o);
			}
		}
		return updTabPage;
	}

	@Override
	public String keyProps() {
		return "SUBSYS,UPDATEID,PAGENO";
	}

}
